<%--
Description:报表统计
Copyright: Copyright (c) 2006
Company: CVIC SE
@author mao_yfeng
@checker ma_huan
Version 1.0
Created at 2006-05-09
--%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="cvicse-inforreport" prefix="ir" %>
<%@page import="com.cvicse.inforreport.ReportEngine"%>
<%@page import="com.cvicse.inforreport.ReportService"%>
<%@page import="com.cvicse.inforreport.ConfigurationManager"%>
<%@ page import="java.util.Map"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<%
		Map map =  (Map)request.getAttribute("sqlmap");
		String templateName = (String) map.get("templateName");
		map.remove("templateName");
		
		ReportEngine engine = ReportService.getReportEngine();
		String report = engine.getReport(templateName, map);
	
%>

</head>
<title><%=templateName%></title>
<body>
<table width="100%" height="100%">
<TR align="left">
	<TD><html:errors /></TD>
</TR>
<TR>
	<TD width="100%" height="100%">
		<ir:IRViewer style="WIDTH: 100%; HEIGHT: 100%">
            <PARAM NAME="report" VALUE="<%=report%>">
            <PARAM Name="showtoolbar" VALUE="true">
            <PARAM NAME="ExportServiceURL" VALUE="<%=ConfigurationManager.getInstance().getExportServiceURL()%>">
          </ir:IRViewer>
    </TD>
</TR>
</table>
</body>
</html>

